package org.ytor.core.sysapi.dynamicsql.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ytor.core.model.BaseReq;
import org.ytor.core.sysapi.dynamicsql.model.DynamicSqlConfig;

/**
 * created by   on 2025年5月22日 13:10:52
 * <br/>
 * DynamicSqlConfigReq表实体类
 * <br/>
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "dynamic_sql_config")
public class DynamicSqlConfigReq extends BaseReq<DynamicSqlConfig, String> {

    private String id;

    /**
     * api唯一编码
     */
    @Schema(description = "api唯一编码")
    private String apiCode;

    /**
     * api访问路径
     */
    @Schema(description = "api访问路径")
    private String apiPath;

    /**
     * 动态sql片段
     */
    @Schema(description = "动态sql片段")
    private String sqlXml;

    /**
     * 查询数据最大条数
     */
    @Schema(description = "查询数据最大条数")
    private Integer queryLimit;

    /**
     * 返回结果类型
     */
    @Schema(description = "返回结果类型")
    private String resultType;

    /**
     * 参数示例
     */
    @Schema(description = "参数示例")
    private String parameter;

    @Override
    public DynamicSqlConfig toEntity() {
        return null;
    }
}